﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jay.Sc2.Bof.Lib.State;

namespace Jay.Sc2.Bof.Lib.Tools
{
	public class Scouting
	{
		private int m_Time;
		private int m_Food;
		private int m_TimeEnd;
		private bool m_Died;

		public bool LeaveNow(IState state)
		{
			if (m_Time > 0 && m_Time <= state.Time) return true;
			else if (m_Food > 0 && m_Food <= state.Food) return true;
			return false;
		}
		public bool EndNow(IState state) { return m_TimeEnd <= state.Time; }

		public int Time { get { return m_Time; } set { m_Time = value; } }
		public int Food { get { return m_Food; } set { m_Food = value; } }
		public int TimeEnd { get { return m_TimeEnd; } set { m_TimeEnd = value; } }
		public bool Died { get { return m_Died; } set { m_Died = value; } }
	}
}
